const path = require('path');
module.exports = {
    publicPath:process.env.VUE_APP_PUBLIC_PATH,
    outputDir:'../view',
    productionSourceMap: false,
    devServer: {
        // proxy: 'http://47.110.36.151:8091'
    },
    css: {
        loaderOptions: {
            less: {
                // 这里的选项会传递给 less-loader
                test: /\.less$/,
            }
        }
    },

    pluginOptions: {
        'style-resources-loader': {
            preProcessor: 'less',
            patterns: [path.resolve(__dirname, "./src/style/index.less")] // 引入全局样式变量
        }
    }
}